package com.ybwh.springboot2.sys.model.po;

import com.alibaba.fastjson.JSON;
import com.gitee.fastmybatis.annotation.LogicDeleteStrategy;
import lombok.Data;

import io.swagger.annotations.ApiModelProperty;
import com.gitee.fastmybatis.annotation.Column;

import com.gitee.fastmybatis.annotation.Pk;
import com.gitee.fastmybatis.annotation.Table;


import java.util.Date;



/**
* 角色功能关联表
* @author Fan Beibei
* @date   2023-04-08 19:26:56
*/
@Data
@Table(name = "sys_role_func",pk = @Pk(name = "id"))
public class SysRoleFunc {

	/**
	* 主键
	*/
	@ApiModelProperty(value="主键")
	private Long id;
	/**
	* 角色ID
	*/
	@ApiModelProperty(value="角色ID")
	private Long roleId;
	/**
	* 功能ID
	*/
	@ApiModelProperty(value="功能ID")
	private Long funcId;

	@ApiModelProperty(value="是否删除:非0-是，0-否")
	@Column(logicDelete = true,notDeleteValue = "0",logicDeleteStrategy = LogicDeleteStrategy.FIXED_VALUE)
	private Long deleted;
	/**
	* 创建人ID
	*/
	@ApiModelProperty(value="创建人ID")
	private Long createId;
	/**
	* 创建时间
	*/
	@ApiModelProperty(value="创建时间")
	private Date createTime;
	/**
	* 更新人ID
	*/
	@ApiModelProperty(value="更新人ID")
	private Long updateId;
	/**
	* 更新时间
	*/
	@ApiModelProperty(value="更新时间")
	private Date updateTime;

	@Override
	public String toString() {
	return JSON.toJSONString(this);
	}

}